package gyw.spring.cloud.serverdemo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author 关彦武
 * @date 2020/6/9 16:43
 */
@RestController
@RequestMapping("/demo")
public class DemoController {

    @Value("${server.port}")
    String port;

    @RequestMapping("/mes")
    public String getMes(){
        return "测试服务已联通 端口 "+port;
    }
}
